package cn.appsys.service.dev.version;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.dev.version.AppVersionMapper;
import cn.appsys.pojo.AppVersion;

@Service("appversionService")
public class AppVersionServiceImpl implements AppVersionService {

	@Resource
	private AppVersionMapper appversionMapper;
	
	@Override
	public List<AppVersion> getAppVersionList(Integer appId) {
		return appversionMapper.getAppVersionList(appId);
	}

	@Override
	public int addversion(AppVersion appversion) {
		return appversionMapper.addversion(appversion);
	}

	@Override
	public AppVersion getAppVersion(Integer vid) {
		return appversionMapper.getAppVersion(vid);
	}

	@Override
	public int updateAppVersion(AppVersion appversion) {
		return appversionMapper.updateAppVersion(appversion);
	}

	@Override
	public int updateAppVersionapkfile(Integer id) {
		return appversionMapper.updateAppVersionapkfile(id);
	}

}
